<template>
<div class="row">
  <my-tabs :tabs="tabs"></my-tabs>
  <router-view></router-view>
</div>
</template>

<script>
import {Tabs} from '../configs/authMng.js'
import locales from '../locales/authMng.js'
import * as actions from 'share/server/vuex/actions/system.js'

export default {
  locales,
  vuex: {
    getters: {
      username: (state) => state.auth.username,
    },
    actions
  },
  computed: {
    supportSecPolicy () {
      return this.username === 'root'
    },
  },
  data () {
    return {
      tabs: new Tabs(this)
    }
  },
  ready () {
    this.doLoadUsers()
  }
}
</script>

<style>
</style>